import requests from '@/utils/request'
// 获取用户列表
export const getEmployeesList = (params) => requests({ url: '/users', params })
// 获取员工数量
export const getEmployeesNum = () => requests({ url: '/users/count' })
// 删除用户
export const delEmployees = (id) => requests({ url: '/users/' + id, method: 'DELETE' })
// 注册用户
export const registerEmployess = (data) => requests({ url: '/auth/local/register', method: 'POST', data, noToken: true })
// 获取指定用户
export const getIdEmployess = (id) => requests({ url: '/users/' + id })
// 编辑用户
export const undateEmployessNum = (data) => requests({ url: '/users/' + data.id, method: 'PUT', data })
